Mollie\WooCommerce\Payment\PaymentProcessor B

Total Complexity 90
Dependencies 15
Dependents 4
Total lines 532
Lines of code 309
Logical lines of code 217
Comment lines 156
Methods 26
Properties 12

Methods 26

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
A
42 15 43
processAsMolliePayment()
A
53 11 18
updateOrderStatus()
A
54 8 21
processPayment()
S
46 5 37
paymentTypeBasedOnProducts()
S
55 5 19
processPaymentForMollie()
S
56 5 17
processSubscriptionSwitch()
S
57 4 16
processValidMandate()
S
57 3 16
needsSubscriptionSwitch()
S
76 4 3
paymentTypeBasedOnGateway()
S
63 4 10
updatePaymentStatusForDelayedMethods()
S
65 4 8
saveSubscriptionMandateData()
S
58 3 14
reportPaymentCreationFailure()
S
62 3 10
handleMollieFraudRejection()
S
68 2 7
handleMollieOutage()
S
68 2 7
reportPaymentSuccess()
S
62 2 10
__construct()
S
62 1 12
subsSwitchCompleted()
S
68 1 6
setGatewayHelper()
S
78 1 3
saveMollieInfo()
S
70 1 6
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
75 1 4
paymentObjectFailure()
S
75 1 4
processInitialOrderStatus()
S
71 1 5
setGateway()
S
81 1 3
noValidMandateForSubsSwitchFailure()
S
71 1 5